package models

import (
	"github.com/jinzhu/gorm"
	"time"
)

// 迁移库
type Migrations struct {
	ID        int    `gorm:"PRIMARY_KEY;AUTO_INCREMENT"`
	Migration string `gorm:"size:255;not null"`
	Batch     int
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Article struct {
	gorm.Model
	Title       string `gorm:"size:100;not null"`
	Description string `gorm:"type:varchar(100)"`
	Content     string `gorm:"type:text"`
	IsValid     int    `gorm:"Column:is_valid;type:tinyint(1)"`
}
